package com.Jano.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Dept {
    private Integer deptno;
    private String dname;
    private String loc;

    /**
     * 在查询部门信息的同时将其所属的员工信息一同查询出来
     */
    private List<Emp> emps;
}
